
export default {
    state: {
        topData: {},
        loading: false
    },
    mutations: {
        setTopData(state, key) {
            state.routeShow = key
        },
        setLoading(state) {
            state.loading = !state.loading
        },
    },
    actions: {
        setTopData({ commit }, key) {
            commit('setTopData', key)
        }
    }
}
